package com.learn.xiaoha.mapper;




import com.learn.xiaoha.entity.Book;
import com.learn.xiaoha.sqlsession.annotion.SimpleSelect;
import com.learn.xiaoha.sqlsession.annotion.SimpleUpdate;

import java.util.List;

public interface BookMapper {

    @SimpleSelect("select * from book")
    public List<Book> findAll();

    @SimpleUpdate("insert into book (bookname,price,hrid) value ({#bookname},{#price},{#hrid})")
    public void insert(Book book);
}
